home *** CD-ROM | disk | FTP | other *** search
/ Kentucky Virtual Art Museum / Kentucky Virtual Art Museum.iso / site / museums / zoomify / hairjewelry.swf / scripts / DefineSprite_47_emptyLabel_mc / frame_1 / DoAction.as
Text File  |  2005-02-25  |  886b  |  33 lines

  1. function ClipNameIsURL(movieClipString)
  2. {
  3.    var _loc2_ = movieClipString.length;
  4.    if(movieClipString.substring(0,4).toLowerCase() == "http")
  5.    {
  6.       return true;
  7.    }
  8.    if(movieClipString.substring(0,4).toLowerCase() == "file")
  9.    {
  10.       return true;
  11.    }
  12.    if(movieClipString.substring(_loc2_ - 4).toLowerCase() == ".swf")
  13.    {
  14.       return true;
  15.    }
  16.    if(movieClipString.substring(_loc2_ - 4).toLowerCase() == ".jpg")
  17.    {
  18.       return true;
  19.    }
  20.    return false;
  21. }
  22. if(ClipNameIsURL(gMovieClipString) == true)
  23. {
  24.    this.emptyLabelClick_mc.labelPlaceHolder_mc._y = -45;
  25.    this.emptyLabelClick_mc.labelPlaceHolder_mc._x = -58;
  26.    this.emptyLabelClick_mc.labelPlaceHolder_mc.loadMovie(this.gMovieClipString);
  27. }
  28. else
  29. {
  30.    this.emptyLabelClick_mc.labelPlaceHolder_mc.attachMovie(this.gMovieClipString,"labelGraphic",this.gMovieLevel);
  31. }
  32. stop();
  33.